package chen.web;

import org.codehaus.jackson.annotate.JsonIgnore;

public class IdEntity {

	protected int id;
	
	protected IdEntity(int id){
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	@JsonIgnore 
	public boolean isNew(){
		return id == 0;
	}
	
}
